import numpy as np

# 返回查找值的位置
arr = np.array([1, 2, 3, 4, 5, 6, 9, 7, 8, 9, 0, 98, 7, 653, 1])
i = np.where(arr == 9)[0]
if i.size > 0:
    print(i[0])
else:
    print("none")

